package net.zcy.springbootmybatis.mapper;

import net.zcy.springbootmybatis.entity.UserEntity;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {

    List<UserEntity> getAll();

    UserEntity getOne(Long id);

    Integer insert(UserEntity userEntity);

    Integer update(UserEntity userEntity);

    Integer delete(Long id);
}
